package com.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manage.controller.request.MaterialNumRequest;
import com.manage.pojo.entity.RepairMaterial;
import com.manage.service.RepairMaterialService;
import com.manage.mapper.RepairMaterialMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author chenximeng
* @description 针对表【repair_material】的数据库操作Service实现
* @createDate 2022-01-03 16:45:04
*/
@Service
public class RepairMaterialServiceImpl extends ServiceImpl<RepairMaterialMapper, RepairMaterial>
    implements RepairMaterialService{

    @Autowired
    RepairMaterialMapper repairMaterialMapper;

    @Override
    public void addNum(MaterialNumRequest request) {
        repairMaterialMapper.addNum(request);
    }

    @Override
    public void decrese(Long materialId, Integer num) {
        repairMaterialMapper.decresr(materialId, num);
    }
}




